#if !defined(AFX_DLGWELCOME_H__62987C77_67A3_4326_8EE3_40F2615A05A6__INCLUDED_)
#define AFX_DLGWELCOME_H__62987C77_67A3_4326_8EE3_40F2615A05A6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgWelcome.h : header file
//
#include "..\..\Inc\Center\WzdToolTipCtrl.h"

/////////////////////////////////////////////////////////////////////////////
// CDlgWelcome dialog

class CDlgWelcome : public CDialog
{
private:
	HBITMAP OemBitmap ;
	int     OemWidth,OemHeight;
	int  m_nCurSel ;
	CImageList m_ImageList; 
	CWzdToolTipCtrl m_tip;
	BOOL Read(int nReadCount);
	BOOL ExistProj(char* pPath,char *pName);
	void RefreshListState();
 public:
	int				m_nCheckPos ;	
	int				m_nBtnCount	;
	CTmButton*		m_pBtn[6] ;
	BOOL m_bOpenProj ;
	CDlgWelcome(CWnd* pParent = NULL);   // standard constructor
	void	LoadMyButtons();
	void DrawText(int nItem, int nSubItem, CDC *pDC, COLORREF crText, COLORREF crBkgnd, CRect &rect);
	static void CALLBACK BtnMouseEvent(void* pParentWnd,int nBtnPos,UINT uID, UINT nMouseWork, UINT nFlag,CPoint pt);
// Dialog Data
	//{{AFX_DATA(CDlgWelcome)
	enum { IDD = IDD_Dlg_Welcome };
 	CListCtrl	m_List;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgWelcome)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgWelcome)
	virtual BOOL OnInitDialog();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnSelchangeCOMBOCount();
	afx_msg void OnBUTTONOpenSel();
	afx_msg void OnBUTTONClose();
	afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnColumnclickList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnDestroy();
	afx_msg void OnBUTTONNew();
	afx_msg void OnBUTTONOpen();
	afx_msg void OnNMCustomdrawList(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnPaint();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGWELCOME_H__62987C77_67A3_4326_8EE3_40F2615A05A6__INCLUDED_)
